fix out of bound access to mode_strings
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 9 Dec 2016 01:17:04 +0000 (17:17 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Mar 2017 20:47:03 +0000 (13:47 -0700)
commitb2e678e81dd9635eb33279e2817168d13b78c1fa
tree493ab4da90db2e624865f98f51a7322a9ccdbb2e
parent05946b58420c693748366b7c6f71ec2ec2456242
fix out of bound access to mode_strings

mode == ARRAY_SIZE(mode_strings) causes an out of bound access to
the mode_strings array.

Coverity-ID: 1381859

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/traps.c